import { dialog } from '@gis/lib/components/antd-dialog';
// 网约房列表
export function openHomestayListDialog(yard_id) {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./net-order-room-chq.vue'),
      contentProps: { yard_id: yard_id },
      dialogProps: {
        title: `网约房详情`,
        width: 'large',
        height: 'fixed',
        footer: null,
        bodyStyle: { padding: 0 },
        onCancel: () => {
          resolve(true);
        },
      },
    });
  });
}
// 网约房详情
export function openHomestayDetailsDialog(data) {
  dialog({
    content: () => import('../net-room/homestay-detail/homestay-room-detail.vue'),
    contentProps: {
      details: data,
    },
    dialogProps: {
      title: `网约房详情`,
      width: 'large',
      height: 'fixed',
      footer: null,
      bodyStyle: { padding: 0 },
    },
  });
}

export function openNetRegisterPeopleListDialog() {
  dialog({
    content: () => import('./net-register-people-list.vue'),
    contentProps: {},
    dialogProps: {
      title: '网约房登记列表',
      width: 'medium',
      height: 'fixed',
      footer: null,
    },
  });
}
